import request from '@/utils/request'
//发布巡查任务
export const addPatrolTask=(data)=> {
  return request({
    url: '/patrolTask/pushTask',
    method: 'post',
    data: data
  })
}
// 获取巡检任务列表
export const queryPatrolTask=(query)=> {
    return request({
      url: '/patrolTask/queryTask',
      method: 'get',
      params: query
    })
  }
// 删除巡查任务
export const delPatrolTask=(data)=> {
    return request({
      url: '/patrolTask/removeTask',
      method: 'DELETE',
      data: data
    })
  }
//修改巡查任务
export const editPatrolTask=(data)=> {
    return request({
      url: '/patrolTask/editTask',
      method: 'post',
      data: data
    })
  }
// 根据范围获取管线信息
export const getRangePipeInfo =(data)=> {
  return request({
    url: '/patrolTask/getRangePipeInfo',
    method: 'post',
    data: data
  })
}

//清掏列表查询
export const getClearTask=(query)=> {
  return request({
    url: '/clearTask/queryTask',
    method: 'get',
    params: query
  })
}

//修复列表查询
export const getRepairTask=(query)=> {
  return request({
    url: '/repairTask/queryRepairTask',
    method: 'get',
    params: query
  })
}

//任务审批-代办
export const representative=(query)=> {
  return request({
    url: '/taskAudit/representative',
    method: 'get',
    params: query
  })
}